/**
 * Classname :PagingInfoItem.java
 *
 * Version information: 1.0
 *
 * Date: Mar 09, 2012 Bui.Trung.Dung create
 *
 */
package com.history.common.domain.db;
import java.io.Serializable;

/**
 * @author tungnq.nguyen
 * 
 */
public class PagingInfoItem implements Serializable, Cloneable {

    /**
     * 
     */
    private static final long serialVersionUID = -6485047832646272907L;

    private int index;
    private String text;
    private boolean selected = false;

    public PagingInfoItem() {

    }

    /**
     * @param index
     * @param text
     * @param selected
     */
    public PagingInfoItem(int index, String text, boolean selected) {
        this.index = index;
        this.text = text;
        this.selected = selected;
    }

    /**
     * @return the index
     */
    public int getIndex() {
        return index;
    }

    /**
     * @param index
     *            the index to set
     */
    public void setIndex(int index) {
        this.index = index;
    }

    /**
     * @return the text
     */
    public String getText() {
        return text;
    }

    /**
     * @param text
     *            the text to set
     */
    public void setText(String text) {
        this.text = text;
    }

    /**
     * @return the selected
     */
    public boolean isSelected() {
        return selected;
    }

    /**
     * 
     * @return
     */
    public boolean getSelected() {
        return selected;
    }

    /**
     * @param selected
     *            the selected to set
     */
    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    public String toString() {
        return "PagingInfoItem-[index:" + index + ", text:" + text + ", selected:" + selected + "]";
    }

}
